package com.gama.pay.alipay.controller.rest;

import com.gama.pay.alipay.config.RestConstants;
import com.gama.pay.alipay.pojo.UserPayListResponse;
import org.jboss.resteasy.spi.HttpResponse;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

@Path("/pay")
@Consumes(RestConstants.DEFAULT_CONTENT_TYPE)
@Produces(RestConstants.DEFAULT_CONTENT_TYPE)
public interface UserPayListController {
    /**
     * 通过URL访问： http://127.0.0.1:8080/alipay/pay/userPay?userId=xxx
     *
     * @param userid
     * @param response
     * @return
     * @throws Exception
     */
    @GET
    @Path("/userPay")
    @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
    UserPayListResponse userPay(@QueryParam("userId") String userid, @Context HttpResponse response) throws Exception;
}
